package com.central.product.service

import com.baomidou.mybatisplus.extension.plugins.pagination.Page
import com.central.common.entity.DrawCategory
import com.central.common.model.CommonResult
import com.central.common.model.PageVo
import com.central.common.service.ISuperService

/**
 * @author  fly
 * @date  2021/5/28 15:07
 * @version 1.0
 */
interface DrawCategoryService : ISuperService<DrawCategory> {


    /**
     * 通过id获取
     */
    fun get(id: Long): CommonResult<DrawCategory>

    /**
     * 获取全部数据
     */
    fun getAll(): CommonResult<List<DrawCategory>>

    /**
     * 分页获取
     */
    fun getByPage(pageVo: PageVo): CommonResult<Page<DrawCategory>>

    /**
     * 编辑或更新数据
     */
    fun saveOrUpdateDrawCategory(drawCategory: DrawCategory): CommonResult<DrawCategory>

    /**
     * 批量通过id删除
     */
    fun delAllByIds(ids: Array<String>): CommonResult<Any>

}
